package com.example.demo.behavior.template_method;

/**
 * @Desc:
 * @Author zzz
 * @Date 2021/2/20
 * @Version V1.0
 */
public abstract class AbstractTask {
    
    public void doWork() {
        // specified implement
        System.out.println("get up ......");
        // abstract logical
        eat();
        sleep();
        hitDoudou();
    }

    abstract void eat();

    abstract void sleep();

    abstract void hitDoudou();

}
